import request from '@/utils/request'

// 查询日志配置列表
export function listOperlogurl(query) {
  return request({
    url: '/system/operlogurl/list',
    method: 'get',
    params: query
  })
}

// 查询日志配置详细
export function getOperlogurl(id) {
  return request({
    url: '/system/operlogurl/getInfo/' + id,
    method: 'get'
  })
}

// 新增日志配置
export function addOperlogurl(data) {
  return request({
    url: '/system/operlogurl/add',
    method: 'post',
    data: data
  })
}

// 修改日志配置
export function updateOperlogurl(data) {
  return request({
    url: '/system/operlogurl/edit',
    method: 'post',
    data: data
  })
}

// 删除日志配置
export function delOperlogurl(id) {
  return request({
    url: '/system/operlogurl/remove/' + id,
    method: 'get'
  })
}

//刷新缓存
export function getRefreshCache() {
  return request({
    url: '/system/operlogurl/getRefreshCache/',
    method: 'get'
  })
}

